import Cookies from 'js-cookie'

// 用户id
const TokenKey = 'loginToken'
const onlyKey = 'key'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

// 用户登录标识
export function getOnly() {
  return Cookies.get(onlyKey)
}

export function setOnly(token) {
  return Cookies.set(onlyKey, token)
}

export function removeOnly() {
  return Cookies.remove(onlyKey)
}



